<template>
  <el-select v-model="type" placeholder="请选择" @change="handleChange">
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.text"
      :value="item.value"
    >
    </el-option>
  </el-select>
</template>

<script>
export default {
  data() {
    return {
      options: this.$enums.tagType.array,
    };
  },
  methods: {
    handleChange() {
      this.$emit("change", this.type);
    },
  },
  model: {
    prop: "type",
    event: "change",
  },
  mounted() {},
  props: {
    type: {
      type: Number,
      default: 1,
    },
  },
};
</script>
